package main

import "fmt"

func main(){
	var a = []int{1, 2, 5, 9, 7, 15}
	var b = []int{17, 2, 9, 10, 15, 99}
	var c = 0
	for _, i := range a{
		for _, j := range b {
			if i == j {
				c += 1
			}
		}
	}
	fmt.Printf("相同的个数有%d个", c)
}
